﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/StateMaster.master"
    CodeBehind="Successfull.aspx.cs" Inherits="CSP.Web.Successfull" %>


<asp:Content ID="CSPStyleAndScript" runat="server" ContentPlaceHolderID="CSPStyleAndScript">
    <script language="javascript">
        window.onload = function () {
            var time = 5; //设置时间为几秒
            //var timer = document.getElementById('timer'); //获取ID为timer的对象
            //timer.innerHTML = time; //初始化显示秒数
            time = time - 1;
            var g = window.setInterval(function () {
                if (time < 0) {
                    window.clearTimeout(g); //清除动画
                    window.location.href = '<%=ReturnPath %>'; //跳转到指定地址
                    //window.history.back(-1); //后退
                } else {
                    showTime();
                }
            }, 1000);
            //显示函数
            function showTime() {
                //timer.innerHTML = time;
                time--;
            }
        };
    </script>
</asp:Content>
<asp:Content ID="CSPMain" runat="server" ContentPlaceHolderID="CSPMain">
    <div class="box-bd">
        <div class="state-tip">
            <div class="state-cont">
                <h3 class="gi i-ok">
                    操作已成功，<span class="fc-red">5</span> 秒种之后将自动跳转到操作前的页面!</h3>
                
                <p>
                    或者 <a class="fc-blue" href="<%=ReturnPath %>">直接点击跳转</a></p>
            </div>
        </div>
    </div>
</asp:Content>
